package com.itheima.day01;

public class Demo04 {
    public static void main(String[] args) {
        int[] arr = {11, 21, 32, 43, 54, 66, 60, 42, 77};
        int count = 0;
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] % 2 == 0 && arr[i] % 3 == 0) {
                count++;
            }
        }
        System.out.println("能同时被2和3整除的数有" + count + "个");
    }
}
